
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    int math = 9;
    int  english = 14;
    int chinese = 12;
    int sum = math+english+chinese;
%>
<p style="color: darkorange">
<table border="2">
    <tr>
        <td>
            姓名
        </td>
        <td>
            数学成绩
        </td>
        <td>
            英语成绩
        </td>
        <td>
            语文成绩
        </td>
        <td>
            总分
        </td>
    </tr>
    <tr>
        <td>
            哈哈
        </td>
        <td>
            <%= math%>
        </td>
        <td>
            <%= english%>
        </td>
        <td>
            <%= chinese%>
        </td>
        <td>
            <%= sum%>
        </td>
    </tr>
    <%
        int math1 = 12;
        int  english1 = 6;
        int chinese1 = 15;
        int sum1 = math1+english1+chinese1;
    %>
    <tr>
        <td>
            嘻嘻
        </td>
        <td>
            <%= math1%>
        </td>
        <td>
            <%= english1%>
        </td>
        <td>
            <%= chinese1%>
        </td>
        <td>
            <%= sum1%>
        </td>
    </tr>
</table>
</body>
</html>
